﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Globalization;

namespace OnlineMediaAnalyzer.Models
{
    public class Party
    {
        public int ID { get; set; }

        [Required(ErrorMessage = "Name is required")]
        [StringLength(128, ErrorMessage = "Name length should be less than 128")]
        public string Name { get; set; }

        public virtual ICollection<FeedParty> FeedParties { get; set; }
        public virtual ICollection<PartyMember> PartyMembers { get; set; }
        public virtual ICollection<PartyKeyword> PartyKeywords { get; set; }
    }
}